/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package hxg.portmgr.core.oper.RemoteClient;

/**
 *
 * @author hxg
 */
public enum RemoteClientType {

    Telnet {

        @Override
        public RemoteClientOper getOper(String ip, int port) {
            return new TelnetOper(ip, port);
        }

        @Override
        public RemoteClientOper getOper(String ip) {
            return getOper(ip, 23);
        }
    },
    SSH2 {

        @Override
        public RemoteClientOper getOper(String ip, int port) {
            return new SSH2Oper(ip, port);
        }

        @Override
        public RemoteClientOper getOper(String ip) {
            return getOper(ip, 22);
        }
    };

    public abstract RemoteClientOper getOper(String ip, int port);

    public abstract RemoteClientOper getOper(String ip);
    

}
